<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;

class CarModel extends Model
{

    /**
     * 关联到模型的数据表
     *
     * @var string
     */
    protected $table = 'car_model';

    public static function series( $brand_name ){

        $sql = "select * from car_model where `brand_name`=?";
        $data = DB::select( $sql, [ $brand_name ] );
        return !empty( $data ) ? $data[0] : '';

    }





}